package com.longjianghuasheng.logistics.business.billing_period.fragment

import android.os.Bundle
import com.longjianghuasheng.logistics.R
import com.longjianghuasheng.logistics.base.BaseTitleFragment
import com.longjianghuasheng.logistics.business.billing_period.BillingPeriodViewModel
import com.longjianghuasheng.logistics.business.billing_period.adapter.AccountDetailsAdapter
import com.longjianghuasheng.logistics.databinding.FragmentBillingDetailBinding
import com.longjianghuasheng.logistics.ext.initLinerDecoration

class BillingDetailFragment :
    BaseTitleFragment<BillingPeriodViewModel, FragmentBillingDetailBinding>() {

    private val accountDetailsAdapter by lazy {
        AccountDetailsAdapter()
    }

    override fun layoutId(): Int = R.layout.fragment_billing_detail

    override fun initView(savedInstanceState: Bundle?) {
        super.initView(savedInstanceState)
        initTitleBar("账单明细")
        mDatabind.recyclerView.initLinerDecoration(space = 0f, adapter = accountDetailsAdapter)
    }

    override fun createObserver() {
        super.createObserver()
    }

    override fun initData() {
        super.initData()
    }

    override fun lazyLoadData() {
        super.lazyLoadData()
        accountDetailsAdapter.setNewInstance(MutableList(5) { "" })
    }


}